package cn.jingzhuan.fm.pojo

import cn.jingzhuan.fm.App
import cn.jingzhuan.fm.R
import com.bilibili.socialize.share.core.SocializeMedia
import com.bilibili.socialize.share.core.SocializeMedia.QQ
import com.bilibili.socialize.share.core.SocializeMedia.QZONE
import com.bilibili.socialize.share.core.SocializeMedia.SINA
import com.bilibili.socialize.share.core.SocializeMedia.WEIXIN
import com.bilibili.socialize.share.core.SocializeMedia.WEIXIN_MONMENT

/**
 * Created by daidaijie on 17-9-11.
 */
data class ShareItem(
    val title: String,
    val img: Int,
    val socializeMedia: SocializeMedia
) {
  companion object {

    val shareItems = mutableListOf(
        ShareItem(getString(R.string.share_wechat), R.mipmap.icon_share_wechat, WEIXIN),
        ShareItem(getString(R.string.share_wechat_moments), R.mipmap.icon_share_wechat_moments,
            WEIXIN_MONMENT),
        ShareItem(getString(R.string.share_sina), R.mipmap.icon_share_sina, SINA),
        ShareItem(getString(R.string.share_qq), R.mipmap.icon_share_qq, QQ),
        ShareItem(getString(R.string.share_qzone), R.mipmap.icon_share_qzone, QZONE)
    )

    private fun getString(id: Int) = App.getInstance()!!.getString(id)

  }

}